const request = require('../utils/request')

/**
 * 获取支付二维码
 *
 * @returns {Promise<unknown>}
 */
export const getPayQrcode = (order_id, data) => request.get(`/api/orders/${order_id}/pay`, data)

/**
 * 查询订单支付状态
 *
 * @returns {Promise<unknown>}
 */
export const getPayStatus = (order_id) => request.get(`/api/orders/${order_id}/status`, {}, false)